Repository navigation
fix: Let collect's partial results through the upstream awaiting check - #1247
Merged
Merged
Conversation
Skipping an operation whose upstream is awaiting also skipped every node downstream of collect, and refs reading it, until all of collect's inputs had settled, so the partial results collect exists for never reached them. Stop the upstream walk at collect nodes. Assisted-by: Claude Code:claude-opus-5-5
3 tasks done
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1247 +/- ##
==========================================
+ Coverage 89.76% 89.78% +0.02%
==========================================
Files 10 10
Lines 7062 7076 +14
==========================================
+ Hits 6339 6353 +14
Misses 723 723 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 24, 2026
hoxbro
reviewed
Nov 24, 2026
Co-authored-by: Simon Høxbro Hansen <simon.hansen@me.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Since #1243, an operation whose upstream is still awaiting an async result is skipped. That walk went through
collectnodes into their pending inputs, so anything downstream ofcollect, and any parameter with a ref to it, stopped receiving the partial resultscollectexists for. For example, aList(allow_refs=True)fed bycollect(a, b).args.rx.pipe(list)went from[]straight to[1, 2]instead of[Undefined, Undefined],[1, Undefined],[1, 2]as in 2.5.0b5._upstream_awaitingnow stops atcollectnodes, since acollectnode's value is current while its inputs are pending. Everything else about the #1243 check is unchanged.I added a test that watches both a node downstream of
collectand a parameter referencing it, and checks they get the partial result before the final one; it fails onmain. The test suite passes, apart fromtest_no_blocklist_imports, which fails the same way onmainin my environment, and so do the type checks.AI Disclosure
Tool & Model: Claude Code + Claude Opus 5.5
Usage: Bisected the regression, implemented the fix and the test, and ran the suite and type checks.
Checklist